<?php

$menu_1_ary = array(
'1' => 'Product',
'2' => 'Customer',
'3' => 'Media',
'4' => 'System',
);

$menu_2_ary = array(
'1' => array(
array('name'=>'Basic Information', 'url'=>'p_product.php'), 
array('name'=>'Category', 'url'=>'p_category.php'), 
array('name'=>'Inventory', 'url'=>'p_inventory.php'), 
array('name'=>'Import/Export Data', 'url'=>'p_data_exchange.php'), 
array('name'=>'Delete Product', 'url'=>'p_confirm_delete.php'), 
),

'2' => array(
array('name'=>'Basic Information', 'url'=>'c_customer_list.php'), 
array('name'=>'Order', 'url'=>'c_order_list.php'), 
),

'3' => array(
array('name'=>'News', 'url'=>'i_news.php'), 
array('name'=>'Distribution', 'url'=>'i_distribution.php'),
array('name'=>'Links', 'url'=>'i_links.php'),
array('name'=>'Photo Category', 'url'=>'i_photo_category.php'),
array('name'=>'Photo Gallery', 'url'=>'i_photo.php'),
array('name'=>'About Us', 'url'=>'i_aboutus.php'),
array('name'=>'Tradeshows', 'url'=>'i_tradeshows.php')
),

'4' => array(
array('name'=>'Index Picture', 'url'=>'s_indexset.php'), 
array('name'=>'Product Description', 'url'=>'s_productset.php'), 
array('name'=>'Webmaster Email', 'url'=>'s_emailset.php'), 
)

);




$admin_menu_list = '
<td valign="top" width="156">
<table width="156" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><img src="../images/admin/listing.gif" width="156" height="30"></td>
  </tr>
</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="listbk0" width="1"><img src="../images/admin/shim.gif" width="1" height="1"></td>
    <td>';


foreach ($menu_1_ary as $k=>$v) {
    $admin_menu_list .= '
	  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td background="../images/admin/list_bk1.gif" height="16"><img src="../images/admin/shim.gif" width="6" height="1" align="absmiddle"><span class="listtext1">' . $v . '</span></td>
        </tr>
        <tr>
          <td height="10"><img src="../images/admin/list_bk2.gif" width="154" height="10"></td>
        </tr>
      </table>';
    
    if (!empty($menu_2_ary[$k])) {
        foreach ($menu_2_ary[$k] as $k1=>$v1) {
            $admin_menu_list .= '
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td class="listbk1"><img src="../images/admin/point1.gif" width="16" height="16" align="absmiddle"><a href="' . $v1['url'] . '" class="listtext2">' . $v1['name'] . '</a></td>
            </tr>
            <tr>
              <td class="listbk2" height="1"><img src="../images/admin/shim.gif" width="1" height="1"></td>
            </tr>
          </table>';
        }
    }
}

    
$admin_menu_list .= '
    </td>
    <td class="listbk0" width="1"><img src="../images/admin/shim.gif" width="1" height="1"></td>
  </tr>
</table>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><img src="../images/admin/list_bt.gif" width="157" height="8"></td>
  </tr>
</table>
</td>
';

?>